<%--
  Created by IntelliJ IDEA.
  User: 沙捞雕像
  Date: 2022/5/27
  Time: 13:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册</title>
</head>
<body>

        <div>
            <form action= "${pageContext.request.contextPath }/login?method=add">
            <div class="form-group">
                <label>用户名:</label>
                <input type="text" name="username" id="" class="form-control" placeholder="请输入用户名"/>
            </div>
            <div class="form-group">
                <label>密&nbsp;&nbsp;&nbsp;码:</label>
                <input type="password" name="password" id="password" class="form-control"  placeholder="请输入密码"/>
            </div>
            <button type="submit">注册</button>
                <button onclick="jump">返回</button>
                <script>
                    function jump() {
                        window.location.href="/register";
                    }
                </script>
                alert(${msg})
        </form>
        </div>
</body>
</html>
